package com.eternal.base.global;

/**
 * Created by Administrator
 * On 2020/4/26
 * Description:
 * @author Administrator
 */
public class BluetoothKey {
    /**
     * 蓝牙service key
     */
    public static final String UUID_SERVICE="70D51000-2C7F-4E75-AE8A-D758951CE4E0";
    /**
     * 蓝牙write key
     */
    public static final String UUID_WRITE="70D51001-2C7F-4E75-AE8A-D758951CE4E0";
    /**
     * 蓝牙notify key
     */
    public static final String UUID_NOTIFY="70D51002-2C7F-4E75-AE8A-D758951CE4E0";
    /**
     * 固强特征值
     */
    public static final int FEATURES=2306;
    /**
     * 显示--的值
     */
    public static final short EMPTY=-32768;
    /**
     * 最大序列
     */
    public static final int MAX_SEQUENCE=65535;
    /**
     * 默认mtu
     */
    public static final int DEFAULT_MTU=247;

    /**
     * 获取命令
     */
    public static final byte COMMAND_GET=0x1;
    /**
     * 获取变化命令
     */
    public static final byte COMMAND_REFRESH=0x2;
    /**
     * 设置命令
     */
    public static final byte COMMAND_SET=0x3;

    public static final byte COMMAND_LOG_START=0x11;
    public static final byte COMMAND_LOG=0x12;
    public static final byte COMMAND_LOG_END=0x13;

    public static final byte COMMAND_HISTORY_START=0x14;
    public static final byte COMMAND_HISTORY=0x15;
    public static final byte COMMAND_HISTORY_END=0x16;

    /**
     * 设备信息
     */
    public final static int DEVICE_INFO = 0x0;
    public final static int COMMAND_DEVICE_C_INFO = DEVICE_INFO;

    /**
     * 设备时钟的时间
     */
    public final static int DEVICE_CLOCK_TIME = 0x1;
    /**
     * 设备实时温湿度及其变化情况
     */
    public final static int DEVICE_CURRENT_TEMP_HUM_STATUS = 0x2;
    /**
     * 设备当前的负载状态
     */
    public final static int DEVICE_CURRENT_LOAD_CONDITION = 0x3;
    /**
     *  当前选中端口
     */
    public final static int DEVICE_PORT_CHOOSE = 0x04;
    /**
     *  查询指定端口类型
     */
    public final static int DEVICE_PORT_TYPE = 0x05;
    /**
     *  查询设备端口总数
     */
    public final static int DEVICE_PORT_COUNT = 0x06;
    /**
     *  查询设备所有端口类型
     */
    public final static int DEVICE_ALL_PORT_TYPE = 0x07;


    /**
     * 设备的工作模式
     */
    public final static int DEVICE_CURRENT_OPERATING_MODE = 0x10;
    /**
     * OFF模式的风扇档位
     */
    public final static int DEVICE_FAN_GEAR_BY_OFF = 0x11;
    /**
     * ON模式的风扇档位
     */
    public final static int DEVICE_FAN_GEAR_BY_ON = 0x12;
    /**
     * AUTO模式的高/低温/湿度数值
     */
    public final static int DEVICE_TEMP_HUM_STATUS_BY_AUTO = 0x13;
    /**
     * TIMER TO ON模式的时长
     */
    public final static int DEVICE_DURATION_BY_TIMER_TO_ON = 0x14;
    /**
     * TIMER TO OFF模式的时长
     */
    public final static int DEVICE_DURATION_BY_TIMER_TO_OFF = 0x15;
    /**
     * CYCLE模式的ON、OFF时长
     */
    public final static int DEVICE_DURATION_BY_CYCLE = 0x16;
    /**
     *
     * SCHED模式的开始、结束时刻
     */
    public final static int DEVICE_DURATION_BY_SCHED = 0x17;
    /**
     * 当前模式的剩余时间
     */
    public final static int DEVICE_TIME_REMAINING_BY_CURRENT_MODE = 0x18;
    /**
     * 温度单位
     */
    public final static int DEVICE_TMP_UNIT = 0x20;
    /**
     * 背光亮度档位
     */
    public final static int DEVICE_BACKLIGHT_BRINGHTNESS_GEAR = 0x21;
    /**
     * 温度、湿度Transition
     */
    public final static int DEVICE_TEMP_HUM_TRANSITION = 0x22;
    /**
     * 温度、湿度Buffer
     */
    public final static int DEVICE_TEMP_HUM_BUFFER = 0x23;
    /**
     * 温度、湿度Calibration
     */
    public final static int DEVICE_TEMP_HUM_CALIBRATION = 0x24;
    /**
     * 一条通知消息的相关数据
     */
    public final static int DEVICE_DATA_RELATED_TO_NOTIFICATION_MESSAGE = 0x30;
    /**
     * 一组Automation设置的相关数据
     */
    public final static int DEVICE_SET_THE_RELEVANT_AUTOMATION_MESSAGE = 0x31;
    /**
     * 一组Alarm设置的相关数据
     */
    public final static int DEVICE_SET_THE_RELEVANT_ALARM_MESSAGE = 0x32;
    /**
     * 一组Notification设置的相关数据
     */
    public final static int DEVICE_SET_THE_RELEVANT_NOTIFICATION_MESSAGE = 0x33;

    public final static int DEVICE_C_MODEL_ALARM=0x19;

    public final static byte MODE_OFF=0x1;
    public final static byte MODE_ON=0x2;
    public final static byte MODE_AUTO=0x3;
    public final static byte MODE_TIME_ON=0x4;
    public final static byte MODE_TIME_OFF=0x5;
    public final static byte MODE_CYCLE=0x6;
    public final static byte MODE_SCHED=0x7;
    public static final byte AUTOMATION=0x1;
    public static final byte ALARMS=0x2;
    public static final byte NOTIFICATIONS=0x3;

    public static final byte DEVICE_TYPE_A = 0x1; // 通用温控盒(温湿度)
    public static final byte DEVICE_TYPE_B = 0x2; // 温湿度插座
    public static final byte DEVICE_TYPE_C = 0x3; // 植物帐篷(温湿度)
    public static final byte DEVICE_TYPE_C1 = 0x4; // 温湿度记录仪1A1B
    public static final byte DEVICE_TYPE_C2 = 0x5; // 温湿度记录仪2A2B
    public static final byte DEVICE_TYPE_D = 0x6; // A款温控盒(单温度)
    public static final byte DEVICE_TYPE_E = 0x7; // 帐篷控制器(温湿度)
}
